package uk.ac.cam.juliet.zedcat.db;

import java.util.Date;

//A Java representation of an instance of an action
//The class action holds its own list of these
//It holds the start date of an instance, and its duration in milliseconds 

public class ActionInstance {
	private Date startDate;
	private long durationMillis;
	
	public ActionInstance(Date startDate, long duration)
	{
		this.startDate = startDate;
		this.durationMillis = duration;
	}
	
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	public Date getStartDate() {
		return startDate;
	}
	
	public void setDuration(long durationMillis) {
		this.durationMillis = durationMillis;
	}
	
	public long getDuration() {
		return durationMillis;
	}
}
